<?php
/**
 * Created by PhpStorm.
 * User: idcu
 * Date: 2016/3/12
 * Time: 13:48
 */
namespace Service\Model;
use IDCU\Model\RelationModel;

class OrderStepModel extends RelationModel
{
    protected $connection = array(
        'db_type' => 'mysql',
        'db_host' => '114.55.30.131',
        'db_port' => '3306',
        'db_name' => 'wxsmart',
        'db_user' => 'zhkj_crm',
        'db_pwd' => 'AdkdCGP7fHcjht5c',
        'db_charset' => 'utf8',
        'db_debug' => true,
    );
    protected $tablePrefix = '';
    protected $tableName = 'tp_qtservice_step';

    protected $_link = array(
        'WxOrder' => array(
            'mapping_type' => self::BELONGS_TO,
            'mapping_name' => 'step',
            'foreign_key'  => 'sid'
        )
    );
}
    
